package de.herberlin.pss.ui;

import java.util.ListResourceBundle;
import java.util.Locale;
import java.util.ResourceBundle;

import de.herberlin.pss.AppException;

public class Text extends ListResourceBundle {

	@Override
	protected Object[][] getContents() {
		return new Object[][] {
				{"cSongTitle","Song Title"},
				{"cArtistName","Artist"}
				
		};
	}
	
	
	public static String getText(String key) {
		 ResourceBundle rb =
		      ResourceBundle.getBundle("de.herberlin.pss.ui.Text", Locale.getDefault());
		 if (rb != null) {
			 return rb.getString(key);
		 } else {
			 throw new AppException( "RB must not be null!");
		 }

	}
}
